package com.googlecode.openauth.web.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.googlecode.openauth.web.entity.AreaInfo;
import com.googlecode.openauth.web.entity.RoleInfo;
import com.googlecode.openauth.web.entity.RoleInfo;

public interface IAreaDao {
	public void addAreaAction(AreaInfo area);
	public void updateAreaAction(AreaInfo area);
	public void delAreaActionByAreaId(int areaId);
	public List<AreaInfo> getAreaActionByAreaId(int areaId);
	public AreaInfo getAreaLevelByid(int areaId);
	public int getAllAreasCount(RoleInfo role);
	public List<AreaInfo> getAllAreas(RoleInfo role, RowBounds rowBounds);
	public int searchAreasCount(AreaInfo area);
	public List<AreaInfo> searchAreas(AreaInfo area, RowBounds rowBounds);
	public List<AreaInfo> getChildAreas(RoleInfo role);
}
